﻿#ifndef INSTRUCTIONTURNTABLERUN_H
#define INSTRUCTIONTURNTABLERUN_H

#include "ScriptInstruction.h"

class InstructionTurnTableRun :public ScriptInstruction
{
  Q_OBJECT
private://property
  bool runningMode=true;//true代表速率模式，false代表位置模式
private:
  static const int byteArraySize=sizeof (runningMode);//除去指令类型标识符后的数据大小
public:
  explicit InstructionTurnTableRun();
  InstructionTurnTableRun(InstructionTurnTableRun const& instructionTurnTableRun);
  InstructionTurnTableRun& operator=(InstructionTurnTableRun const & instructionTurnTableRun);
  virtual ~InstructionTurnTableRun();
public:
  virtual QString toString()override;
  virtual QByteArray toByteArray() override;
  virtual InstructionTurnTableRun* clone()override;
  static ScriptInstruction* fromByteArray1(char * const src,int size,int * offset);
public://geter and seter
  bool getRunningMode();
  InstructionTurnTableRun* setRunningMode(bool runningMode);
};
#endif
